//
//  MXOperation.m
//  Operation
//
//  Created by muxue on 2019/4/21.
//  Copyright © 2019 暮雪. All rights reserved.
//

#import "MXOperation.h"

@implementation MXOperation

// 开始执行
- (void)main {
    for (int i = 0; i < 2; i++) {
        [NSThread sleepForTimeInterval:2]; // 模拟耗时操作
        NSLog(@"1---%@", [NSThread currentThread]); // 打印当前线程
    }
}

// 任务执行完成会走这个方法
- (void)waitUntilFinished {
    
}
@end
